package myJs.exp741

import myJs.I18n
import org.scalajs.dom.document
import slinky.web.ReactDOM

import scala.concurrent.ExecutionContext.Implicits.global
import scala.scalajs.js.annotation.{JSExport, JSExportTopLevel}

/**
 * Created by yz on 13/11/2020
 */
@JSExportTopLevel("Exp741")
object Exp741 {

  @JSExport("init")
  def init = {
    I18n.initialize().toFuture.map { x =>
      ReactDOM.render(Cp(), document.querySelector("#root"))
    }
  }


}
